namespace Altova.Xml
{
	internal class XmlHexBinaryFormatter : XmlFormatter
	{
		public override string Format(byte[] v)
		{
			return HexBinary.decode(v);
		}

		public override byte[] ParseBinary(string s)
		{
			return HexBinary.encode(s);
		}
	}
}
